package cn.xopencode.oss.dal.mysql.dataobject.permission;

import cn.xopencode.mybatis.core.dataobject.DeletableDO;
import cn.xopencode.oss.dal.mysql.dataobject.admin.AdminDO;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * {@link AdminDO} 和 {@link PositionDO} 的关联表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oss_admin_position")
public class AdminPositionDO extends DeletableDO {

    /**
     * 编号
     */
    private String id;
    /**
     * 账号编号
     *
     * 关联 {@link AdminDO#getId()}
     */
    private String adminId;
    /**
     * 职务编号
     *
     * 关联 {@link PositionDO#getId()}
     */
    private String positionId;

}
